import request from '#/utils/request';

//负荷模型配置  导出excel（下载模板）
export async function exportExcel(params) {
  return request(params.url || '/decomposition/longTermDecomposition/exportExcel', {
    method: 'POST',
    data: params,
    responseType: 'blob',
    getResponse: true,
  });
}

//负荷模型配置  导入检测
export async function importContractCheckNew(params, importUrl, requestParams = {}) {
  return request(importUrl || '/decomposition/longTermDecomposition/importContractCheckNew', {
    method: 'POST',
    requestType: 'form',
    data: params,
    ...requestParams,
  });
}
//负荷模型配置  导入合约
export async function importContractNew(params, importUrl) {
  return request(importUrl || '/decomposition/longTermDecomposition/importContractNew', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}
